// mysql 数据库连接
export const MYSQL_CONN_OPTIONS = {
    host: 'aidoor.net',
    port: 3307,
    user: 'story_baohe',
    password: 'story_baohe123',
    database: 'story_product'
}
export const SERVER_IP = 'localhost';
export const MQTT_REECON_TIME = 10 * 1000;
export const WEB_PROT = 4210;

export const APP_VERSION_CODE = 1;
export const PLAY_LIST_LIMIT_SIZE = 20;

// redis数据库连接
export const REDIS_CONN_IPTIONS = {
    port: 6379,
    host: '127.0.0.1',
    family: 4,
    password: '',
    // password:'story1234567890',
    db: 0,
    lazyConnect: true,
};


// 主进程Redis连接配置
export const MASTER_REDIS_WX_TOKEN_OPTIONS = {
    port: 6379,
    host: '127.0.0.1',
    family: 4,
    password: '',
    // password:'story1234567890',
    db: 1,
    lazyConnect: true,
};


// 本地主进程运行的web服务端口
export const LOCAL_HTTP_SERVER = '127.0.0.1';
export const LOCAL_HTTP_PORT = 8888;

// 通知进程更新微信Token
export const PULL_WXTOKEN_FROM_REDIS = 'PULL_WXTOKEN_FROM_REDIS';

// 工作进程通知主程序,有新增的公众号
export const NOTIFY_MASTER_RELOAD_PLARFORM = 'NOTIFY_MASTER_RELOAD_PLARFORM';

// 主进程通知其他工作进程更新Token
export const NOTIFY_WORKER_RELOAD_PLARFORM = 'NOTIFY_WORKER_RELOAD_PLARFORM';

// token缓存
export const WX_TOKEN_ = 'wx_token:';

// 专辑类别缓存
export const REDIS_AI_STORY_ALBUM_GROUP = 'ai_story_album_group:';
// 单个公众号缓存
export const REDIS_AI_STORY_PUBLIC_PLATFORM = 'ai_story_public_platform:';

// 查找设备序列号时间范围5分钟内
export const LIMIT_MSECONDS = 5 * 60 * 1000;
// 微信消息有效期三天
export const WX_MESSAGE_VALID_TIME = 3 * 24 * 60 * 59 * 1000;
// 我的最爱
export const FAVORITE_CATEGORY_ID = 5;


export const LIKE_PREFIX = 'like_prefix_';


// 消息队列发送Topic
export const SUB_WX_VOICE = 'wx_voice';
export const SUB_WX_SUBSCRIBE = 'wx_subscribe';





